Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FISH-5645 Validity Checks on Client Certificates in the Trust Store #5427

Merged
merged 5 commits into from
Oct 4, 2021

Conversation

JamesHillyard
Copy link
Member

@JamesHillyard JamesHillyard commented Sep 28, 2021

A new improvement utilising the ClientCertificateValidator API with a default implementation checking for expired certificates being used in the trust store. An image of the log's warning is below.

Important Info

To prevent breaking changes this is enabled by default for community but will be disabled for Enterprise.

Testing

New tests

ClientValidationTest in the new client-certification-validation module of Payara-Samples adds an expired certificate to the trust store then attempts to make a connection to a test servlet using that expired certificate.

Testing Performed

Manually ran the test application from the JIRA and new Payara-Sample.

Testing Environment

JDK8, Maven 3.6.3, Windows 10

Documentation

Documentation PR: payara/Payara-Community-Documentation#253

Notes for Reviewers

image

@JamesHillyard
Copy link
Member Author

Jenkins test please

Signed-off-by: JamesHillyard <[email protected]>
@JamesHillyard
Copy link
Member Author

Jenkins test please

Copy link

@rdebusscher rdebusscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You haven't added the domain.xml changes to web profile.
Also adding default values in via domain.xml is discouraged where possible since it messes with upgrades

Signed-off-by: JamesHillyard <[email protected]>
@JamesHillyard
Copy link
Member Author

Jenkins test please

@jGauravGupta jGauravGupta self-requested a review October 1, 2021 14:23
Signed-off-by: JamesHillyard <[email protected]>
@JamesHillyard
Copy link
Member Author

Jenkins test please

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html

Package names are written in all lower case to avoid conflict with the names of classes or interfaces.

Rename to fish.payara.samples.security.client.validation or fish.payara.samples.security.client_validation (hyphens aren't allowed either).

Signed-off-by: JamesHillyard <[email protected]>
@JamesHillyard
Copy link
Member Author

Jenkins test please

@JamesHillyard JamesHillyard merged commit e98423a into payara:master Oct 4, 2021
JamesHillyard added a commit to JamesHillyard/Payara that referenced this pull request Oct 28, 2021
FISH-5645 Validity Checks on Client Certificates in the Trust Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants